package pers.lt.fileupload.dao;

import org.springframework.stereotype.Component;
import pers.lt.hibernatebeans.AttachInfoEntity;
import pers.lt.jdbc.JdbcTemplate;

import javax.annotation.Resource;

/**
 * Created by 18621 on 2016/8/17.
 */
@Component("FileUploadDao")
public class FileUploadDao {
    @Resource
    private JdbcTemplate jdbcTemplate;
    public AttachInfoEntity saveAttachInfo(AttachInfoEntity attachInfoEntity){
        jdbcTemplate.save(attachInfoEntity);
        return attachInfoEntity;
    }
}
